package com.book.service;

import com.book.entity.Cart;
import com.book.utils.ResponseResult;

import java.util.List;

public interface CartService {
    ResponseResult addCart(Cart cart);

    ResponseResult deleteCartByIds(List<Integer> cartIds);

    ResponseResult getCarts(String userId);

    ResponseResult deleteCartById(int id);

    ResponseResult buyCartByIds(int addressId, List<Integer> cartIds);

    ResponseResult buyCartById(int addressId, int id);

    ResponseResult buyDirectly(Cart cart,int addressId);
}
